home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Tool Chest / Graphics & Imaging / Virtual Sphere 1.0.1 / Virtual Sphere Sample Code 1.1 / VirtualSphere.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-25  |  1.1 KB  |  35 lines  |  [TEXT/MPS ]

  1. /*•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  2. /* VirtualSphere.h
  3. /*
  4. /* Implements the Virtual Sphere algorithm for 3D rotation using a 2D input device.
  5. /* See paper "A Study in Interactive 3-D Rotation Using 2-D Control Devices" by
  6. /* Michael Chen, S. Joy Mountford and Abigail Sellen published in the ACM Siggraph '88
  7. /* proceedings (Volume 22, Number 4, August 1988) for more detail.  The code here
  8. /* provides a much simpler implementation than that described in the paper.
  9. /*
  10. /* Author: Michael Chen, Human Interface Group / ATG
  11. /* Copyright © 1987-93 Apple Computer, Inc.  All rights reserved.
  12. /*
  13. /* Part of Virtual Sphere Sample Code Release v1.1
  14. /*•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••*/
  15.  
  16. #ifndef    __VIRTUALSPHERE__
  17. #define __VIRTUALSPHERE__
  18.  
  19. #ifndef    __TYPES__
  20. #include <Types.h>
  21. #endif
  22.  
  23. #ifndef    __GRAPHICS3D__
  24. #include "Graphics3D.h"
  25. #endif
  26.  
  27. pascal void VirtualSphere (Point    p,    
  28.                            Point    q,
  29.                            Point    cueCenter,
  30.                            Integer    cueRadius,
  31.                            Matrix4D rotationMatrix);
  32.  
  33.  
  34. #endif __VIRTUALSPHERE__
  35.